<%
	String acc = (String)request.getAttribute("ac");
	if("create person".equalsIgnoreCase(acc)) {}
 %>
<!-- try checkin -->
<script type="text/javascript">
	showDetails = function(elem) {
		var imgElem = elem;
		imgElem.setAttribute('src', 'images/icon-tree-close.gif');
		var children = imgElem.parentNode.getElementsByTagName('ul')[0];
		if(children.style.display == '') {
			children.style.display = 'none';
			imgElem.setAttribute('src', 'images/icon-tree-close.gif');
		}
		else {
			children.style.display = '';
			imgElem.setAttribute('src', 'images/icon-tree-open.gif');
		}
	}
</script>
<fieldset>
	<%
		String imgSrc = "images/icon-tree-close.gif";
	 %>
	
	<div>
		<img title="Double click the row to open or close the detail information" src="<%=imgSrc%>"
		onclick="showDetails(this);"
		style="cursor: pointer;" />
		<a href="javascript:;" onclick="actionPage('la_contract_list.jsp')">企业一</a>
		<ul style="display:none">
			<li><a href="javascript:;" onclick="actionPage('la_contract_create.jsp')">人才1</a></li>
			<li><a href="javascript:;" onclick="actionPage('la_role_create.jsp')">人才2</a></li>
			<li><a href="javascript:;" onclick="actionPage('la_role_create.jsp')">人才3</a></li>
		</ul>
	</div>
	<br/>
	
	<div>
		<img title="Double click the row to open or close the detail information" src="<%=imgSrc%>"
		onclick="showDetails(this);"
		style="cursor: pointer;" />
		<a href="javascript:;" onclick="actionPage('la_contract_to_enterprise.jsp')">企业二</a>
		<ul style="display:none">
			<li><a href="javascript:;" onclick="actionPage('la_enterprise_list.jsp')">人才1</a></li>
		</ul>
	</div>
	<br/>
</fieldset>
<script type="text/javascript">
	actionPage = function(dest) {
		var url = dest;
		var myAjax = new Ajax.Updater('right',url,{method:'get',evalScripts: true});
	}
</script>	
<%@ page contentType="text/html;charset=utf-8" %>